﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SMSList.aspx.cs" Inherits="Customer_Profile.CRM.SMSList" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register Src="~/mainTop.ascx" TagName="mainTop" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">    
    <title>Customer List</title>
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR" />
    <meta content="C#" name="CODE_LANGUAGE" />
    <meta content="JavaScript" name="vs_defaultClientScript" />
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/css/style.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
        .templateTable {
            border-collapse: collapse;
            background: #F3F8F7;
            width: 100%;
        }
        .templateTable td {
            border: solid 1px #C2D4DA;
            padding: 2px;
        }
        .templateCaption td.caption {
            background: #ECF2F3;
        }    
    </style>
    <script language="javascript" type="text/javascript" src="/js/common.js"></script>
    <script language="javascript" type="text/javascript" src="/js/CalPopUp.js"></script>
    <script language="javascript"  type="text/javascript">
        function checkForm() {
            var start_date = document.getElementById("txtcreatedatebegin").value;
            var end_date = document.getElementById("txtcreatedateend").value;

            if (trim(start_date) != '' && trim(end_date) != '') {
                if (!strDateTime(start_date)) {
                    alert('起始日期格式不准确');
                    return false;
                }
                if (!strDateTime(end_date)) {
                    alert('结束日期格式不准确');
                    return false;
                }
            }
            return true;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td width="1" background="/images/dot_vline.gif">
                <img height="1" src="/images/spacer.gif" width="1"></td>
            <td valign="top" width="15">
                <img height="1" src="/images/spacer.gif" width="15"></td>
            <td valign="top">
                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td style="height: 23px">
                            <uc1:mainTop ID="MainTop1" runat="server" />
                            <span class="navi-blu"><span class="navi-blk">首页 &gt; 个人旅行卡管理 &gt; CRM &gt; 短信发送历史</span>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td background="/images/dot_hline.gif">
                            <img height="1" src="/images/spacer.gif" width="1"></td>
                    </tr>
                </table>
                <table style="position: relative; top: 6px" cellspacing="0" cellpadding="0" width="100%"
                    border="0">
                    <tr>
                        <td>
                            <img height="6" src="/images/corner_lft1.gif" width="6"></td>
                        <td>
                            <div align="right">
                                <img height="6" src="/images/corner_rgt1.gif" width="6"></div>
                        </td>
                    </tr>
                </table>
                <table cellspacing="1" cellpadding="4" width="100%" bgcolor="#c8c8c8" border="0">                        
                    <tr bgcolor="#e9e9e9">                                                
                        <td>
                            <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                <tr>
                                    <td width="100">
                                        <img height="9" hspace="5" src="/images/arw_gry_rgt.gif" width="9" align="middle">标题：</td>
                                    <td>
                                        <asp:TextBox ID="txtTitle" runat="server" CssClass="input2" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                <tr>
                                    <td>
                                        <img height="9" hspace="5" src="/images/arw_gry_rgt.gif" width="9" align="middle">发送日期：</td>
                                    <td>
                                        从&nbsp;
                                        <asp:TextBox ID="txtcreatedatebegin" runat="server" CssClass="input2" Width="100px"></asp:TextBox>&nbsp;
                                        <img style="cursor: hand" onclick="JavaScript:calPopForCMon(txtcreatedatebegin, 'ss');" height="14" src="/images/dot_date.gif" width="16" align="absMiddle">
                                        &nbsp;到 &nbsp;
                                        <asp:TextBox ID="txtcreatedateend" runat="server" CssClass="input2" Width="100px"></asp:TextBox>&nbsp;
                                        <img style="cursor: hand" onclick="JavaScript:calPopForCMon(txtcreatedateend, 'ss');" height="14" src="/images/dot_date.gif" width="16" align="absMiddle">
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <div align="center">
                                <asp:Button ID="btnSearch" runat="server" Text="搜索" class="button" onclientclick="return checkForm()" 
                                    onclick="btnSearch_Click" />&nbsp;                                
                            </div>
                        </td>
                    </tr>
                </table>
                <table style="position: relative; top: -6px" cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td>
                            <img height="6" src="/images/corner_lft2.gif" width="6"></td>
                        <td>
                            <div align="right">
                                <img height="6" src="/images/corner_rgt2.gif" width="6"></div>
                        </td>
                    </tr>
                </table>
                <table bordercolor="#c2d2e2" cellspacing="0" cellpadding="2" width="100%" border="1">
                    <tr>
                        <td>
                            <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                <tr>
                                    <td bgcolor="#1765a7">
                                        <img height="11" src="/images/pic_results.gif" width="61"></td>
                                </tr>
                            </table>
                            <dx:ASPxGridView ID="gridReward" runat="server" KeyFieldName="sms_id" Width="100%"
                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                CssPostfix="Office2003Blue" AutoGenerateColumns="False">
                                <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                    CssPostfix="Office2003Blue">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                    <LoadingPanel ImageSpacing="10px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesEditors>
                                    <ProgressBar Height="25px">
                                    </ProgressBar>
                                </StylesEditors>
                                <Columns>
                                    <dx:GridViewDataColumn FieldName="sms_id" Width="5%" VisibleIndex="0" 
                                        Caption="批次号" >                      
                                        <CellStyle Font-Bold="True" ForeColor="#1765A7" HorizontalAlign="Center">
                                        </CellStyle>
                                    </dx:GridViewDataColumn>
                                    <dx:GridViewDataColumn FieldName="sms_title" VisibleIndex="1" Caption="标题" />                                    
                                    <dx:GridViewDataColumn FieldName="input_userid" VisibleIndex="3" Caption="录入员" />
                                    <dx:GridViewDataColumn FieldName="input_username" VisibleIndex="4" Caption="录入人姓名" />
                                    <dx:GridViewDataColumn FieldName="input_datetime" VisibleIndex="6" Caption="录入时间" />
                                    <dx:GridViewDataColumn FieldName="sms_status" VisibleIndex="7" Caption="发送状态" >                                    
                                        <CellStyle Font-Bold="True" ForeColor="#1765A7">
                                        </CellStyle>
                                    </dx:GridViewDataColumn>
                                    <dx:GridViewDataColumn Caption="手机号码" VisibleIndex="8">                                    
                                        <DataItemTemplate>
                                            <a href='SMSPhoneNoList.aspx?sms_id=<%# Eval("sms_id")%>' target="_blank">查看</a>
                                        </DataItemTemplate>
                                    </dx:GridViewDataColumn>
                                </Columns>                               
                              <Templates>
                                <PreviewRow>
                                     <table style="border:none">
                                         <tbody>
                                         <tr>
                                             <%--<td style="width:25%;border:none;color:Black"><dxe:ASPxBinaryImage ID="ASPxBinaryImage1" runat="server" Value='<%# Eval("Photo") %>'></dxe:ASPxBinaryImage></td>--%>
                                             <td style="border:none;word-wrap: break-word;word-break:break-all;"><%# Eval("sms_content")%></td>
                                         </tr>
                                         </tbody>
                                     </table>
                                 </PreviewRow>            
                             </Templates>
                             <Settings ShowPreview="true"/>
                            </dx:ASPxGridView>
                        </td>
                    </tr>
                </table>
                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td>
                            <img height="3" src="/images/spacer.gif" width="1"></td>
                    </tr>
                </table>           
            </td>
            <td valign="top" width="10">
                <img height="1" alt="" src="/images/spacer.gif" width="10"></td>
        </tr>
    </table>
    </form>
</body>
</html>
